package com.CST.service.cb;

import com.CST.common.api.Response;
import com.CST.dto.cb.DateDTO;
import com.CST.entity.cb.RdCostsalaryrelation;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ly
 * @since 2021-12-08
 */
public interface IRdCostsalaryrelationService extends IService<RdCostsalaryrelation> {
    List<RdCostsalaryrelation> getRdCostSalaryRelation(RdCostsalaryrelation entity);

    Response insertBatchRdCostSalaryRelation(List<RdCostsalaryrelation> list);

    Response modifyRdCostSalaryRelation(RdCostsalaryrelation entity);

    Response batchDeleteRdCostSalaryRelation(List<Integer> ids);

    List<RdCostsalaryrelation> listCostItemByDate(DateDTO dateDTO);

    /**
     * 导出薪酬系统
     * @param response
     * @param entity
     */
    void downloadExcel(HttpServletResponse response, RdCostsalaryrelation entity);

    List<RdCostsalaryrelation> checkRelation(DateDTO dateDTO);


    String syscRecord(int year, int month);
}
